package com.hongxia.assetsys.domain;

import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;


import lombok.Data;

/**
 * 
 * @TableName tb_task_attack
 */
@TableName(value ="tb_task_attack")
@Data
public class TaskAttack implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String taskname;

    /**
     * 
     */
    private String taskdesc;

    /**
     * 
     */
    private Integer relatedorg;

    /**
     * 
     */
    private String joinedtesters;

    /**
     * 
     */
    private String taskstatus;

    /**
     * 
     */
    private Date starttime;

    /**
     * 
     */
    private Date endtime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TaskAttack other = (TaskAttack) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTaskname() == null ? other.getTaskname() == null : this.getTaskname().equals(other.getTaskname()))
            && (this.getTaskdesc() == null ? other.getTaskdesc() == null : this.getTaskdesc().equals(other.getTaskdesc()))
            && (this.getRelatedorg() == null ? other.getRelatedorg() == null : this.getRelatedorg().equals(other.getRelatedorg()))
            && (this.getJoinedtesters() == null ? other.getJoinedtesters() == null : this.getJoinedtesters().equals(other.getJoinedtesters()))
            && (this.getTaskstatus() == null ? other.getTaskstatus() == null : this.getTaskstatus().equals(other.getTaskstatus()))
            && (this.getStarttime() == null ? other.getStarttime() == null : this.getStarttime().equals(other.getStarttime()))
            && (this.getEndtime() == null ? other.getEndtime() == null : this.getEndtime().equals(other.getEndtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTaskname() == null) ? 0 : getTaskname().hashCode());
        result = prime * result + ((getTaskdesc() == null) ? 0 : getTaskdesc().hashCode());
        result = prime * result + ((getRelatedorg() == null) ? 0 : getRelatedorg().hashCode());
        result = prime * result + ((getJoinedtesters() == null) ? 0 : getJoinedtesters().hashCode());
        result = prime * result + ((getTaskstatus() == null) ? 0 : getTaskstatus().hashCode());
        result = prime * result + ((getStarttime() == null) ? 0 : getStarttime().hashCode());
        result = prime * result + ((getEndtime() == null) ? 0 : getEndtime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", taskname=").append(taskname);
        sb.append(", taskdesc=").append(taskdesc);
        sb.append(", relatedorg=").append(relatedorg);
        sb.append(", joinedtesters=").append(joinedtesters);
        sb.append(", taskstatus=").append(taskstatus);
        sb.append(", starttime=").append(starttime);
        sb.append(", endtime=").append(endtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}